package header

import (
	"reflect"

	"zstackgo/pkg/header/errorcode"
	"zstackgo/pkg/header/message"
	"zstackgo/spring"
)

func init() {
	spring.RegisterInterface("header.Service", reflect.TypeOf((*Service)(nil)).Elem())
}

type Service interface {
	Component

	HandleMessage(msg message.Message) *errorcode.ErrorCode
	GetId() string
	GetSyncLevel() int
	GetAliasIds() []string
}
